<div class="leftpanel">
    	
        <div class="logopanel">
        	<h1><a href="<?php echo $baseurl;?>">Wicard <span>v1.0</span></a></h1>
        </div><!--logopanel-->
        
        <!--<div class="datewidget"><?php //echo "Hôm nay là ".date("D M j Y, G:i:s"); ?></div> -->
    
    	<div class="searchwidget">
            <?php echo form_open('')?>
            	<div class="input-append">
                    <input type="text" class="span2 search-query" placeholder="Nhập từ khóa..." name="keyword" />
                    <input type="hidden" name="type_submit" value="1" />
                    <button type="submit" class="btn"><span class="icon-search"></span></button>
                </div>
            </form>
        </div><!--searchwidget-->
        
        <div class="leftmenu">        
            <ul class="nav nav-tabs nav-stacked">
                <li class=""><a href="<?php echo $baseurl;?>"><span class="icon-align-justify"></span> Trang chủ</a></li>
                
                <li class="<?php if(in_array($action, array('editrestaurant', 'listrestaurant'))) echo 'active'?> dropdown"><a href=""><span class="icon-fire"></span> Quản lý nhà hàng</a>
                	<ul <?php if(in_array($action, array('editrestaurant','listrestaurant'))) echo 'style="display: block"'?>>
                        <li><a href="<?php echo $baseurl.'manage/restaurant/index'?>">Danh sách nhà hàng</a></li>
                        <li><a href="<?php echo $baseurl.'manage/address/index'?>">Danh sách địa chỉ</a></li>
                    </ul>
                </li>
                 
                <li class="<?php if(in_array($action, array('listcoupon', 'addecoupon', 'editecoupon'))) echo 'active'?> dropdown"><a href=""><span class="icon-gift"></span>Quản lý E-Coupon</a>
                	<ul <?php if(in_array($action, array('listcoupon', 'addecoupon', 'editecoupon'))) echo 'style="display: block"'?>>
                    	<li><a href="<?php echo $baseurl.'manage/ecoupon/add-ecoupon'?>">Tạo mới E-Coupon</a></li>
                        <li><a href="<?php echo $baseurl.'manage/ecoupon/index'?>">Danh sách E-Coupon</a></li>
                        <li><a href="<?php echo $baseurl.'manage/userecoupon/index'?>">Sử dụng E-Coupon</a></li>
                        <li><a href="<?php echo $baseurl.'manage/ecoupon/report-ecoupon'?>">Báo cáo</a></li>
                    </ul>
                </li>
				
                <li class="<?php if(in_array($action, array('profile','liststaff', 'addstaff', 'editstaff'))) echo 'active'?> dropdown"><a href=""><span class="iconsweets-cog"></span>Quản lý hệ thống</a>
                	<ul <?php if(in_array($action, array('profile','liststaff', 'addstaff', 'editstaff'))) echo 'style="display: block"'?>>
						<li><a href="<?php echo $baseurl.'profile'?>">Cập nhật thông tin</a></li>
                        <li><a href="<?php echo $baseurl.'manage/system/list-staff'?>">Nhân viên check code</a></li>
                    </ul>
                </li>
                
            </ul>
        </div><!--leftmenu-->
        
    </div>